import axios from "axios";

const menus = {
    findAllMenu(data) {
        return axios({
            url: '/admin/findAllMenu',
            method: 'POST',
            data
        })
    },
    searchMenu(data) {
        return axios({
            url: '/admin/searchMenu',
            method: 'POST',
            data
        })
    },
    menuDetail(data) {
        return axios({
            url: '/admin/menuDetail',
            method: 'POST',
            data
        })
    },
    updateMenu(data) {
        return axios({
            url: '/admin/updateMenu',
            method: 'POST',
            data
        })
    },
}

export default menus;